# sound.py
import pygame

class SoundManager:
    def __init__(self):
        pygame.mixer.init()
        self.sounds = {
            'brick_break': pygame.mixer.Sound('sounds/brick_break.wav'),
            'paddle_hit': pygame.mixer.Sound('sounds/paddle_hit.wav'),
            'wall_hit': pygame.mixer.Sound('sounds/wall_hit.wav')
        }

    def play(self, name):
        self.sounds[name].play()